<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let num1 = 5
    let num2 = 5
    let num3 = 5
    let num4 = 5
    let num5 = 5
    // num1 = num1 + 10
    // console.log(num1)  // 15
    // 赋值运算符的简写形式
    num1 += 10
    console.log(num1)  // 15

    // 其他赋值运算符的简写形式
    num2 -= 5
    console.log(num2)  // 0
    num3 *= 2
    console.log(num3)  // 10
    num4 /= 2
    console.log(num4)  // 2.5
    num5 %= 2
    console.log(num5)  // 1

  </script>
</body>

</html>